#include "DestroyEntityMsg.h"
#include "Entity.h"

CDestroyEntityMsg::CDestroyEntityMsg(CEntity* pEntityToDestroy) : CMessage(Msg_DestroyEntity)
{
	m_pEntity = pEntityToDestroy;
	m_pEntity->AddRef();
}


CDestroyEntityMsg::~CDestroyEntityMsg(void)
{
	m_pEntity->Release();
	m_pEntity = nullptr;
}